CONFIG -= qt

TEMPLATE = lib
DEFINES += DMCOMM_LIBRARY

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    dmcomm.cpp \
    hiddevice.cpp \
    networkdevice.cpp \
    serialdevice.cpp \
    virtualdevice.cpp

HEADERS += \
    deviceinterface.h \
    dmcomm.h \
    hiddevice.h \
    networkdevice.h \
    serialdevice.h \
    virtualdevice.h


include(../common/config.pri)
include(../common/hidapi.pri)
include(../common/cserialport.pri)

LIBS += -L$${DESTDIR} -lcserialport

unix: {
    LIBS += -L$${DESTDIR} -lhidapi-hidraw
}

win32: {
    LIBS += -L$${DESTDIR} -lhidapi
}


# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target
